<?php
/**
 * Created by PhpStorm.
 * User: 毛文科
 * Date: 2019/6/13
 * Time: 11:30
 */
namespace app\zhongxue\controller;
use app\zhongxue\model\Lunbo;
use think\Controller;
use think\Request;

class Maoapi extends Controller
{
    public function guide(Request $request){
        $data = Lunbo::where('status',1)
            ->where('id',1)
            ->findOrEmpty()
            ->toArray();
        if($data){
            return json_my_response('获取成功',200,$data);
        }else{
            return json_my_response('参数错误');
        }
    }
}